import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
    path: '/',
    name: 'index',
    component: () => import('../views/index.vue')
  },
  
  {
    path: '/story/:storyid',
    name: 'Story',
    component: () => import('../views/story.vue')
  },
  {
    path: '/my',
    name: 'My',
    component: () => import('../views/My.vue')
  }, {
    path: '/login',
    name: 'Login',
    component: () => import('../views/Login.vue')
  },
  {
    path: '/collection',
    name: 'Collection',
    component: () => import('../views/collection.vue')
  }

]

const router = new VueRouter({
  routes
})

export default router